package com.waijiaojun.tpo.repository;

import com.waijiaojun.tpo.vo.StatisticsErrorsQuestionGroupByCategoryVo;
import com.waijiaojun.tpo.vo.StatisticsErrorsQuestionVo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

import com.waijiaojun.tpo.entity.QuestionCategory;
import org.springframework.stereotype.Component;

@Component
@Mapper
public interface QuestionCategoryDao {
    int insert(@Param("pojo") QuestionCategory pojo);

    int insertSelective(@Param("pojo") QuestionCategory pojo);

    int insertList(@Param("pojos") List<QuestionCategory> pojo);

    int update(@Param("pojo") QuestionCategory pojo);

    List<StatisticsErrorsQuestionVo> findAllForVo();

    List<StatisticsErrorsQuestionGroupByCategoryVo> statisticsErrorQuestonGroupByCategory(@Param("openid") String openid);

    List<QuestionCategory> findAll();
}
